import { http } from "@/utils/http";

type Result = {
  code: Number;
  message: string;
  result: any;
};

/** 获取告警列表 */
export const getAlarmList = params => {
  return http.request<Result>("get", "/api/alarm?" + params);
};

/** 处理告警 */
export const dealWithAlarm = data => {
  return http.request<Result>("post", "/api/alarm/process", { data });
};
